<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/16
 * Time: 14:43
 */

namespace app\common\model;


use think\Model;

class BasicArea extends Model
{
    protected $table='sys_area';

    public function city(){
        return $this->hasMany('BasicArea', 'parent_id', 'id');
    }

    public function district(){
        return $this->hasMany('BasicArea', 'parent_id', 'id');
    }
}